#include <stdio.h>
float average(float *p,int n)
{
	float sum=0;
	for (int i=0;i<n;i++) 
	{
		sum+=p[i];
	}
	return sum/n;
}

int main()
{
	float arr[]={1.2,2.3,3.4,4.5,5.6};
	int n=sizeof(arr)/sizeof(arr[0]);
	float avg=average(arr,n);
	printf("The average is: %.2f\n",avg);
	return 0;
}